package com.luke.base.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.luke.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 车型管理对象 lk_vehicle
 * 
 * @author luke
 * @date 2021-05-30
 */
public class LkVehicle implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 车辆型号 */
    @Excel(name = "车辆型号")
    private String vehicleModel;

    /** 车身颜色 */
    @Excel(name = "车身颜色")
    private String vehicleColor;

    /** 车辆图片 */
    @Excel(name = "车辆图片")
    private String vehicleImage;

    /** 上架0 下架1 */
    @Excel(name = "上架0 下架1")
    private String saleStatus;

    /** 上线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上线时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date onlineTime;

    /** 商家时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "商家时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleTime;

    /** 销量 */
    @Excel(name = "销量")
    private Integer saleCount;

    /** 车辆介绍 */
    @Excel(name = "车辆介绍")
    private String vehicleDescribe;

    //修改是删除的图片
    private String[] vehicleDelImage;

    /** 请求参数 */
    private Map<String, Object> params;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVehicleModel(String vehicleModel) 
    {
        this.vehicleModel = vehicleModel;
    }

    public String getVehicleModel() 
    {
        return vehicleModel;
    }
    public void setVehicleColor(String vehicleColor) 
    {
        this.vehicleColor = vehicleColor;
    }

    public String getVehicleColor() 
    {
        return vehicleColor;
    }
    public void setVehicleImage(String vehicleImage) 
    {
        this.vehicleImage = vehicleImage;
    }

    public String getVehicleImage() 
    {
        return vehicleImage;
    }
    public void setSaleStatus(String saleStatus) 
    {
        this.saleStatus = saleStatus;
    }

    public String getSaleStatus() 
    {
        return saleStatus;
    }
    public void setOnlineTime(Date onlineTime) 
    {
        this.onlineTime = onlineTime;
    }

    public Date getOnlineTime() 
    {
        return onlineTime;
    }
    public void setSaleTime(Date saleTime) 
    {
        this.saleTime = saleTime;
    }

    public Date getSaleTime() 
    {
        return saleTime;
    }
    public void setSaleCount(Integer saleCount) 
    {
        this.saleCount = saleCount;
    }

    public Integer getSaleCount() 
    {
        return saleCount;
    }
    public void setVehicleDescribe(String vehicleDescribe) 
    {
        this.vehicleDescribe = vehicleDescribe;
    }

    public String getVehicleDescribe() 
    {
        return vehicleDescribe;
    }

    public String[] getVehicleDelImage() {
        return vehicleDelImage;
    }

    public void setVehicleDelImage(String[] vehicleDelImage) {
        this.vehicleDelImage = vehicleDelImage;
    }

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vehicleModel", getVehicleModel())
            .append("vehicleColor", getVehicleColor())
            .append("vehicleImage", getVehicleImage())
            .append("saleStatus", getSaleStatus())
            .append("onlineTime", getOnlineTime())
            .append("saleTime", getSaleTime())
            .append("saleCount", getSaleCount())
            .append("vehicleDescribe", getVehicleDescribe())
            .toString();
    }
}
